﻿<%@ Page Title="" Language="C#" MasterPageFile="~/ForeProgram/Shared/MasterPage.master"
    AutoEventWireup="true" CodeFile="ProductView.aspx.cs" Inherits="ForeProgram_ProductView" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <link rel="stylesheet" href="css/tbsp.css" type="text/css" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <script type="text/javascript">
        function goToAddCart() {
            swithBtn('hidden');
        }

        //dwr回调按钮的隐藏和显示
        function swithBtn(type) {
            if (type == 'hidden') {
                document.getElementById("showPurchaseDiv").style.display = "none";
                document.getElementById("dealDwr").style.display = "";

            } else {
                document.getElementById("showPurchaseDiv").style.display = "";
                document.getElementById("dealDwr").style.display = "none";
            }
        }

        function Init(type) {
            if (type == "") {
                document.getElementById("showPreBuyDiv").style.display = "none";
                document.getElementById("showPurchaseDiv").style.display = "block";
            } else {
                document.getElementById("showPreBuyDiv").style.display = "block";
                document.getElementById("showPurchaseDiv").style.display = "none";
            }
        }
    </script>
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <asp:TextBox ID="txtStock" style="display:none" runat="server"></asp:TextBox>
    <div class="shop_main_r">
        <div class="Lmain2">
            <form name="productViewForm" id="productViewForm" action="/addVvshopCart.jhtml" method="post"
            onsubmit="return false;">
            <asp:TextBox ID="txtProductid" Style="display: none;" runat="server"></asp:TextBox>
            <div class="Pro_pageTitle">
                <asp:Label ID="lblProductname" runat="server" Text=""></asp:Label><span class="red"></span>&nbsp;&nbsp;
            </div>
            <div class="content">
                <!-- Pro_pic_box -->
                <div class="Pro_pic_box">
                    <div class="introShow">
                        <div class="mainShow">
                            <asp:Image CssClass="MaxPic" Style="border: 0" ID="imgProduct" ImageUrl="" runat="server" />
                        </div>
                    </div>
                </div>
                <!--End: Pro_pic_box -->
                <!-- Pro_txt_box -->
                <div class="Pro_txt_box">
                    <span id="rushLable">折&nbsp;&nbsp;扣&nbsp;&nbsp;价：</span> <strong class="F_red_18"
                        id="vvshopMemberPrice">￥<asp:Label ID="lblDiscountprice" runat="server" Text=""></asp:Label></strong>
                    <br>
                    市场价格： <span class="F_shx" id="vvshopMarketPrice">￥<asp:Label ID="lblMarketprice"
                        runat="server" Text=""></asp:Label></span>
                    <asp:Label ID="lbldiscountVal" class="ftgrey" runat="server" Text="( "></asp:Label>
                    &nbsp;<span class="ftred" id="savePrice">省 ￥<asp:Label ID="lblSpread" runat="server"
                        Text=""></asp:Label>元</span><span class="ftgrey">)</span>
                    <!-- adpage -->
                    <div class="Parameter">
                        <div class="zengsong">
                            <table width="380px" border="0" cellspacing="0" cellpadding="0">
                                <tr>
                                    <td width="7%">
                                        <span style="line-height: 24px;">
                                            <img src="images/kf_icon.jpg" alt="订购热线" width="24" height="18"></span>
                                    </td>
                                    <td colspan="5">
                                        订购热线：<strong class="F_red_12"><asp:Label ID="lbl400Hotline" runat="server" Text=""></asp:Label></strong>
                                    </td>
                                </tr>
                            </table>
                        </div>
                        <div class="infobox">
                            <div class="sizeamount">
                                <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                                    <ContentTemplate>
                                        <ul>
                                            <!--
-->
                                            <li class="Sale_buy" id="showAttribute" style="display: none"><b>您已选择：</b> <strong
                                                id="showAttributeValues" class="F_red"></strong></li>
                                            <li>我要买
                                                <asp:ImageButton ID="imgSub" ImageUrl="images/bag_close.gif" 
                                                    style="border-style: none; border-color: inherit; border-width: medium; display: inline; width: 9px;" 
                                                    runat="server" onclick="imgSub_Click" /><!--减一-->
                                                <asp:TextBox ID="txtQuantity" size="1" value="1" name="quantity" runat="server" AutoPostBack="True"
                                                    OnTextChanged="txtQuantity_TextChanged"></asp:TextBox>
                                                    <asp:ImageButton ID="imgAdd" ImageUrl="images/bag_open.gif" 
                                                    style="display: inline; border:none;" runat="server" onclick="imgAdd_Click" /><!--加一-->
                                                件 </li>
                                            <li class="Sale_buy" id="uselect" style="display: none"><b>您已选择：</b> <strong class="F_red"
                                                id="ysstr"></strong>&nbsp;&nbsp; <strong class="F_red" id="cmstr"></strong></li>
                                        </ul>
                                    </ContentTemplate>
                                </asp:UpdatePanel>
                                <div id="showPurchaseDiv" style="margin-bottom: 5px; margin-top: 10px; display: block">
                                    &nbsp;
                                    <asp:LinkButton ID="lbShop" OnClientClick="goToAddCart();" runat="server" OnClick="lbShop_Click">
                                    <img src="images/gwc.jpg" alt="添加购物车" name="addgwc" border="0" style="cursor: pointer"/></asp:LinkButton>
                                </div>
                                <div id="showPreBuyDiv" style="margin-bottom: 5px; margin-top: 10px; display: block">
                                    <!-- 已售完 -->
                                    <img id="showNoneBuy" src="images/wsj.jpg" border="0">
                                    <!-- 收藏 -->
                                   
                                </div>
                                <div style="padding-right: 10px; display: none" id="dealDwr" class="clear">
                                    <div style="border-bottom: #01b703 1px solid; border-left: #01b703 1px solid; padding-bottom: 2px;
                                        background-color: #f1fde5; padding-left: 25px; padding-right: 25px; float: right;
                                        color: #01b703; border-top: #01b703 1px solid; border-right: #01b703 1px solid;
                                        padding-top: 2px">
                                        正在转向购物车页面,请稍候！</div>
                                </div>
                                <div class="clear">
                                </div>
                            </div>
                        </div>
                    </div>
                    <!--添加邀请结束-->
                </div>
            </div>
            </form>
            <div class="clear">
            </div>
        </div>
        <div class="celldetail_btmbg_xinde">
        </div>
        <!--家电频道商品简介 -->
        <div id="wrap">
            <div id="body">
                <div style="overflow: hidden" id="main">
                    <div id="tabCot_product" class="tab">
                        <div class="tabContainer">
                            <ul class="tabHead">
                                <li class="currentBtn"><a title="商品简介" href="#" rel="1">商品简介</a></li>
                            </ul>
                        </div>
                        <div id="tabCot_product_1" class="tabCot">
                            <div id="divContent" runat="server">
                            </div>
                            <br />
                            <div class="clear">
                                &nbsp;</div>
                        </div>
                        <br />
                    </div>
                    <br />
                </div>
            </div>
        </div>
    </div>
</asp:Content>
